<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ThesisTopic extends Model
{
    protected $fillable = [
        'teacher_id',
        'title',
        'description',
        'requirements',
        'max_students',
        'current_students',
        'status',
    ];

    public function teacher()
    {
        return $this->belongsTo(Teacher::class);
    }

    public function topicSelections()
    {
        return $this->hasMany(TopicSelection::class, 'topic_id');
    }
} 